/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Dib;

import java.util.Stack;

/**
 *
 * @author alex
 */
public class VisitiadosExpandidos extends Stack<Nodo> {

    
    @Override
    public synchronized String toString() {
        if(this.size()==0)
            return "";
        else
        {
            String nodos="";
            for (Nodo nodo : this) {
                nodos+=nodo.getNombre()+",";
            }
            return nodos;
        }
    }
    
    
}
